package edu.stthomas.seis752.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import edu.stthomas.seis752.dao.LocationDao;
import edu.stthomas.seis752.model.Location;

@Service
public class LocationServiceImpl implements LocationService {

	@Autowired
    private LocationDao locationDao;
	
	@Transactional
	public List<Location> getLocations(int number) {
		return locationDao.getLocations(number);
	}

	@Override
	public Location getLocation(Long id) {
		return locationDao.getLocation(id);
	}

}
